package net.zjitc.demo;

/**
 * @Author admin
 * @Date 2019/4/2 8:08
 */
public class Demo {
    public static void main(String[] args) {
        /*System.out.println(Season.SPRING);
        System.out.println(ISeason.WINTER);
        System.out.println(ESeason.SUMMER);
        ESeason season = ESeason.SPRING;
        System.out.println(season.getName());
        System.out.println(season.getNum());*/

        processSeason(ESeason.SPRING);
    }

    /*应用一：*/

   public static void processSeason(ESeason season){

       switch (season){
           case SPRING:
               System.out.println("春天");
               break;
           case SUMMER:
               System.out.println("夏天");
       }

   }

   /*应用二：*/

}
